/*
 * @Author: weikang
 * @Description:
 * @Date: 2023-12-22 10:13:54
 * @LastEditTime: 2024-04-08 16:59:23
 * @FilePath: \env-manager-pc\src\router\modules\update.ts
 */
import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/update',
  component: Layout,
  redirect: '/update/version',
  name: 'update',
  meta: {
    title: '升级管理',
    icon: 'ep:upload',
  },
  children: [
    {
      path: 'version',
      name: 'update-version',
      component: () => import('@/views/update/version/index.vue'),
      meta: {
        title: '版本号查询',
        auth: '/update/version',
      },
    },
    {
      path: 'file',
      name: 'update-file',
      component: () => import('@/views/update/file/index.vue'),
      meta: {
        title: '升级文件管理',
        auth: '/update/file',
      },
    },
    {
      path: 'manager',
      name: 'update-manager',
      component: () => import('@/views/update/manager/index.vue'),
      meta: {
        title: '升级管理',
        auth: '/update/manager',
      },
    },
  ],
}

export default routes
